package com.teamsun.entity;

/**
 * 通过HttpClient调用请求时，返回结果的封装类
 */
public class HttpResult {

    /**
     * 返回状态码
     */
    private int stateCode;

    private String body;

    public HttpResult() {}

    public HttpResult(int stateCode, String body) {
        this.stateCode = stateCode;
        this.body = body;
    }

    public int getStateCode() {
        return stateCode;
    }

    public void setStateCode(int stateCode) {
        this.stateCode = stateCode;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
